package Homework5;

import java.util.Date;

public class WashingMachine extends Household{
    private double capacity;

    public WashingMachine(){}

    public WashingMachine(String brand, Date productDate, double capacity){
        super(brand, productDate);
        this.capacity = capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    public double getCapacity() {
        return capacity;
    }

    @Override
    public String toString(){
        return "WashingMachine: brand = " + getBrand() +
                " productDate = " + getProductDateString() +
                " capacity = " + getCapacity();
    }
}
